package com.cyanite.playlv2api.parsers.json;

import com.cyanite.playlv2api.types.PlayLv2Type;
import com.cyanite.playlv2api.types.Group;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public interface Parser<T extends PlayLv2Type> {

    public abstract T parse(JSONObject json) throws JSONException;
    @SuppressWarnings("unchecked")
    public Group parse(JSONArray array) throws JSONException;
}
